package com.maikang.exammall.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.*;
import lombok.experimental.SuperBuilder;

import javax.persistence.MappedSuperclass;
import java.io.Serializable;

@SuperBuilder
@AllArgsConstructor
@Data
@EqualsAndHashCode
@JsonIgnoreProperties(ignoreUnknown = true)
abstract public class BaseEntity<PRIMARY_KEY> implements Serializable {
    private static final long serialVersionUID = 1L;
    abstract public PRIMARY_KEY getPrimaryKey();
    abstract public void setPrimaryKey(PRIMARY_KEY primaryKey);
}
